package cn.findviewbydream.evil.main.dto;

import cn.findviewbydream.evil.main.entity.CodeTypeEntity;
import cn.findviewbydream.evil.main.entity.PostEntity;
import cn.findviewbydream.evil.main.entity.PostPraiseEntity;

import java.io.Serializable;
import java.util.List;

/********************************************
 * 工程名：HebeuCS
 * 包名：cn.findviewbydream.evil.main.dto
 * 时间：16-11-6 下午4:37
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：贴子列表
 ********************************************/
public class PostListBean implements Serializable
{
    private CodeTypeEntity codeType;/*此列表类型*/
    private int paginalNumber;/*总页数*/
    private int cpn;/*当前页数currentPaginalNumber*/
    private List<PostBean> postList;/*贴子内容和该贴子的点赞*/

    public PostListBean()
    {
    }

    public PostListBean(CodeTypeEntity codeType, int paginalNumber, int cpn, List<PostBean> postList)
    {
        this.codeType = codeType;
        this.paginalNumber = paginalNumber;
        this.cpn = cpn;
        this.postList = postList;
    }

    public CodeTypeEntity getCodeType()
    {
        return codeType;
    }

    public void setCodeType(CodeTypeEntity codeType)
    {
        this.codeType = codeType;
    }

    public int getPaginalNumber()
    {
        return paginalNumber;
    }

    public void setPaginalNumber(int paginalNumber)
    {
        this.paginalNumber = paginalNumber;
    }

    public int getCpn()
    {
        return cpn;
    }

    public void setCpn(int cpn)
    {
        this.cpn = cpn;
    }

    public List<PostBean> getPostList()
    {
        return postList;
    }

    public void setPostList(List<PostBean> postList)
    {
        this.postList = postList;
    }

    @Override
    public String toString()
    {
        return "PostListBean{" +
                "codeType=" + codeType +
                ", paginalNumber=" + paginalNumber +
                ", cpn=" + cpn +
                ", postList=" + postList +
                '}';
    }
}
